-- GENERATED SPELL FOR [The Evalcharr] --


function spell0_8660(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(21549,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8660', 3000, 1)
end

function spell1_8660(pUnit, Event) --@Lightning Breath,n/a--
pUnit:FullCastSpellOnTarget(15797,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8660', 2000, 1)
end

function Sorts_8660(pUnit, Event)
local choix_sorts_8660 = math.random(0, 1)
if choix_sorts_8660 == 0 then
pUnit:RegisterEvent('spell0_8660', 1, 1)
end
if choix_sorts_8660 == 1 then
pUnit:RegisterEvent('spell1_8660', 1, 1)
end
end

function mob8660_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8660', math.random(1500, 3000), 1)
end

function mob8660_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8660_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8660_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8660, 1, 'mob8660_Action')
RegisterUnitEvent(8660, 2, 'mob8660_Leave')
RegisterUnitEvent(8660, 3, 'mob8660_Kill')
RegisterUnitEvent(8660, 4, 'mob8660_Die')
